package com.atguigu.yygh.user.service;

import com.atguigu.yygh.model.user.UserInfo;
import com.atguigu.yygh.vo.user.LoginVo;
import com.atguigu.yygh.vo.user.UserAuthVo;
import com.atguigu.yygh.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {
    //会员登录
    Map<String, Object> login(LoginVo loginVo);
    //传递参数提交用户认证信息
    void userAuth(Long userId, UserAuthVo userAuthVo);
    //根据用户id获取用户信息接口
    UserInfo getUserInfoById(Long userId);
    //带条件带分页查询用户列表
    IPage<UserInfo> selectPage(IPage<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);

    //根据用户id锁定解锁
    void lock(Long userId, Integer status);

    //用户详情
    Map<String, Object> show(Long userId);
    //认证审批
    void approval(Long userId, Integer authStatus);
}
